import Config from "../common/config";
import axios from "axios";



export const fetchList = (query) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/users/getList",
    data: query
  });

  export const addDepartment = (department) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/users/addDepartment",
    data: department
  });

  export const updateUser = (user) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/users/updateUser",
    data: user
  });

  export const addUser = (user) =>  axios({
    method: 'post',
    url: Config.backEndUrl+"/users/addUser",
    data: user
  });
  

  
  